import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';

import { UserComponent } from './user.component';
import { MainComponent } from './main/main.component';

const userRoutes: Routes = [
    {
        path: 'user',
        component: UserComponent,
        children: [
            { path: '', component: MainComponent },
        ]
    }
];

@NgModule({
  imports: [RouterModule.forChild(userRoutes)],
  exports: [RouterModule]
})
export class UserRoutingModule { }
